﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace assignment5
{
    public class Order
    {
        private int id { get; set; }
        private string name { get; set; }
        public int Get { get { return id; } }
        public Order(int id, string name)
        {
            this.id = id;
            this.name = name;
        }
        
        public override string ToString() { return "订单号："+id+"顾客名："+name; }
        public bool Equals(object obj)
        {
            Order m= obj as Order;
            return m != null && m.id == id && m.name == name;
        }
    }
}
